//package com.fh.utils.swagger;
//
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.web.bind.annotation.RequestMethod;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.service.Contact;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
//@EnableSwagger2
//public class Knife4jConfiguration {
//
//    @Bean(value = "defaultApi2")
//    public Docket defaultApi2(SwaggerProperties properties) {
//        return new Docket(DocumentationType.SWAGGER_2)
//                .apiInfo(new ApiInfoBuilder()
//                        .title(properties.getTitle())
//                        .description(properties.getDescription())
//                        .termsOfServiceUrl(properties.getUrl())
//                        .contact(new Contact(properties.getName(), properties.getUrl(), properties.getEmail()))
//                        .version(properties.getVersion())
//                        .build())
//                //分组名称
//                .groupName(properties.getGroupName())
//                .select()
//                //这里指定Controller扫描包路径
//                .apis(RequestHandlerSelectors.basePackage(properties.getBasePackage()))
//                .paths(PathSelectors.any())
//                .build();
//    }
//    @Bean
//    public SwaggerProperties getSwaggerProperties(){
//        return new SwaggerProperties();
//    }
//}